Improved compile.sh script.