minor fixes

now it successfully compiles with Gfortran 4.8.1 and HDF5 1.8.12