Fix sphinx build warnings/errors