Fix linker errors on Win and Mac

Q_WS_WIN and Q_WS_MAC are not defined anymore in Qt5