Fix compile.sh script for OS X.