Properly show errors in batch compile mode