Fix Qt5 support

Sorry for this stupid mistake. Haiku port Qt5 in beta stage and I can not test patches.