Updated to run with latest Dart.
Tested successfully in 0.5.9.0_r22879
Merge pull request #1 from dasmoth/master

Updated to work with latest Dart.