fix warnning on preprocess, and fix build of cmake on linux