Qmake builds for MSVC.

I would need to verify that qmake is doing the right thing with them. As they are doesn't hurt and I'm not trying to change the flags used with GCC in this change, just refactoring it and adding flags for MSVC. Changing the GCC flags should be another commit.