CMakeLists changes to make sems compile with cmake on CentOS