Fix several warnings from CMake 2.8.12