Fix lint errors.
Refactor build process.