Fixing Cmake Errors