Remove warnings from `lib` code