fix cmakelists for standalone builds.
try to fix clang build.