Fix unittest on Mac OSX due to different libpng versions