chunkrenderer fixups to compile with python 3, small clang fixes