Fixed static/shared library configure issues