modified build_native.sh