Edits to get the codes built with OpenSim master
(need to be revised by Justin)
Added a CMakeLists.txt to replace manual project setup