Fixup CXX flags when building with MinGW

Do not use -fvisibility=hidden when using MinGW