Fix lint and compile errors.