add apply_patch.sh and mk_patch.sh