Build both static and dynamic libs