Migrate project code to follow Dart SDK version 0.5.0.1_r21823.