wrap compile-file in try/catch

when compiling a directory via compile-dir and one
file fails to compile, it can be kinda hard to track
down which file actually failed to compile.