possible fix to compile_levels.sh on OS X