Partially recover from syntax errors at top-level.
Recover better from missing files (including SDK).