Get building with mingw on windows

Specifically:
-Only use ms specific compiler flags when using msvc
-remove duplicate include dirs
-always define HAVE_CONFIG since it's generated from cmake

Note: msvc build was tested and works