MSVC compatibility fixes
open HDF5 read-only