adjust to the dart2js changes for compiling to CSP mode