package blas: tidy up build rule
doc update: add gpatch to OSX requirements

closes #335
package hdf5: enable shared builds and detection of pthreads and zlib