Fix CMake 2.8.12 warnings