Updates output directory for projects and fixes build