Fixing cmake build