support custom build_dir in CrossBuild