Fix building as subproject