added patch-and-compile.sh