And fix a bunch of warnings
No extra folders are created with ninja generator after previous CMake fixes.