changed cmakefiles to work on phantomlimb machines