Fix building as a framework.