Upgrade chi-build to 0.0.4 and fix lint errors