[qt] remove kwin max button hack, fix compile warning when x11 is not enabled.