Fix HDF5 detection.
Fix Mac OS X 10.9 build.