Clean old cmake files
Full rewrite of all CMakeLists

CMake now works on all platforms