Try to fix MSVC errors in tr_image_png.c