Update compile.sh

Updated a few lines to make the wrapper work.
Merge pull request #136 from ghobold/patch-3

Update compile.sh