MSVC compatibility fixes
open HDF5 read-only
cmake: fixed getopt source name on Windows
fixed output file names
fixed (?) explicit template instantiation