Attempt to fix the MinGW failed build due to linker runs out of mem.
Add -fno-keep-inline-dllexport compiler option when building using MinGW in order to reduce the object size and the link time (and thus hopefully reduce the linker memory consumption as well).
For Travis CI - switch CI build to use OS X build environment.