[Core/CMake] Fix one warning and suppress a few when using cmake 3.0