support old cmake
build script