changed --enable-threadsafe to --with-threadsafe for the hdf5 dependency