Fix dart2js warnings