Merge pull request #31 from dart-lang/fix-bots

make the bots happy
diff --git a/.status b/.status
index 8d00a2f..1aea97f 100644
--- a/.status
+++ b/.status
@@ -13,7 +13,7 @@
 
 # tests that don't need to be ran after pub-build
 build/test/transformer_test: Skip
-build/test/static_init_cycle_error_test: Skip # Build time warning
+build/test/initializer_cycle_error_test.initialize_test: Skip # Build time warning
 
 # tests that need to run, but we use the bootstrap output instead
 # (build/test/foo.initialize.dart) which is renamed by the .test_config scripts.
@@ -27,7 +27,7 @@
 # failing tests
 [ $compiler == none ]
 test/deferred_library_test: RuntimeError # Issue 22592
-build/test/deferred_library_test: RuntimeError # Issue 22592
+build/test/deferred_library_test.initialize_test: RuntimeError # Issue 22592
 
 [ $browser ]
 # All tests are for the standalone vm only
diff --git a/lib/transformer.dart b/lib/transformer.dart
index caae7a6..3d3a18c 100644
--- a/lib/transformer.dart
+++ b/lib/transformer.dart
@@ -446,10 +446,10 @@
   Element get targetElement {
     if (targetNode is SimpleIdentifier &&
         targetNode.parent is LibraryIdentifier) {
-      return targetNode.parent.parent.element;
+      return (targetNode.parent.parent as LibraryDirective).element;
     } else if (targetNode is ClassDeclaration ||
         targetNode is FunctionDeclaration) {
-      return targetNode.element;
+      return (targetNode as dynamic).element;
     } else {
       return null;
     }