Make it possible to build static-only libraries