cleanup cmake
fix compile warning