Update compile.sh

Modified a few lines to make the file compilation work.