Revert "package hdf5: remove libtool workaround (actually a pthreads build issue)"

This reverts commit 698f49c14abe3af1e1a6de056d08bc2430ec0c27.
add make-shared-from-static build tool
Makefile: add support for make-shared-from-static tool with default args
package blas: fix shared build
package lapack: fix fortran flags on 64-bit builds