configure automake build to properly build static and shared libs