Force minimum CMake version and improvements on CMake usage.