Add defines for porting to Qt5