hdf5: added C++11 option

Closes #508.