fix issue with gcc 4.4.5. pointer to renderer in export_png segfaulted
worked fine in clang