Made -ldl standard for all code linking to hdf