Modified CMakeLists.txt for an easier compilation with Bos support