Updated with new features of cmakehdf5.