Fix warnings in documentation building