simplified compile.sh