Fix warnings with libpng