Only use the -Gm option in desktop debug MSVC builds

This option conflicts with -ZW which is used in Windows Phone builds.
Merge pull request #767 from mstorsjo/avoid-conflicting-msvc-options

Only use the -Gm option in desktop debug MSVC builds