Use QProxyStyle instead of QMacStyle when compiled with qt5 (thanks taurus)