fix compilation warnings reported by dart2js

TBR