fix issues with compile.bash