Updates to allow build of library (without LAPACK)

For testing purposes now in getting ocamlbuild to generate a statically linked
cma with the custom option.
to recreate building issue with -custom option