libpng example: Fix calling convention on error callback

(must be cdecl on every system, matching libpng's expectations)