The source code came with a patch that was supposed to fix this error, but when I tried to apply this patch by running, "patch -p0 pngpatch.patch", the cursor went to the next line and just froze as if it was working in the background, but an hour went by and it was still like that, so I had to hit Ctrl-C to quit the process.