build static and shared libs
Attempt to fix configure and Makefile.