Updated ifdefs to Qt5 style