After update glibc to 2.23 and qt for 5.6.0 build kwin is failed.
Main reason in that gcc can not find major and minor functions. (http://linux.die.net/man/3/major)
After small investigation I understood why is happen. Major and minor function declaration in sysmacros.h and nobody include their. Not in sys/* and not in kde or qt headers.
That simple patch added include sysmacros.h to source.
PS I was try find glibc changes who resulted in situation but I am failed.