Fix lint issues (lib)