When building with SHARED_LIBRARIES=YES on Visual Studio we define H5_HAVE_THREADSAFE so multiple HDF5 files can be open at once. This does not work on mingw, there is an error if H5_HAVE_THREADSAFE is defined. This should be fixed. This is handled in the Makefile.