Allow for building as a subproject. WIP