Make it possible to build libraries as static libraries only.