Use defined(Q_OS_WIN) in #elif to satisfy MSVC

It's always windows.