[libpng17] Tidied up pngfix inits and fixed pngtest no-write builds.