fixes for compile.sh