Fix warnings in the build

parent #381