Update compile.sh

Updated a few lines to make the wrapper work.