fix analysis errors in build.dart; start to update the analyzer to the most recent version