Cmake linker fixes and loaded_project.