Fix detecting OS also for Qt 4.7, Q_OS_WIN does not exist there.