Factor error handling out with a lambda (note: Dart_LibraryImportLibrary's result was not checked until now!)
Merge branch 'update-dart-1.8.0' into ccompile