png: don't typedef things when included by assembler code.
the current change is somewhat overkill and excludes some extra function
declarations, but there's only one assembler file for which it applies and
it was tested to build.
Fixes compilation on ARM reported by John Klos in
PR pkg/52367
(maya)