Fixed RPATH in MacOSX, began filling in autodetection of libhdf5, when needed.