Set correct variables for subprojects, fix install