added back in c++11
fixed hdf5 stuff for gnu compilers