Fixed CMake warnings (using cmake 3.0)