Hdf5: Add option for C++ bindings

Closes #795.