when mingw is mingw64, it appears that we need to use __declspec() and not __attribute__((visibility)) for export control