Test both static and shared library builds