Fixed string type checking
Added workaround for HDF5 installation for gfortran 4.5 and earlier versions.