Fix subproject building