Make write_to_png function work on hardened systems
Make write_to_png function work on hardened systems

If this workaround works, we may use it everywhere ffi.callback is used.

Related to #106.

SimonSapin/cairocffi