hdf5 fixes to build on debian squeeze 6.0

hope I got that right (not using github normally)