Temporary libs fix for QWT for Qt 5.4

@DonLakeFlyer If you like to play with Qt 5.4, this is fixing a few minor compile errors resulting out of the removal of a Qt macro.