[devel] Made PNG_BUILD_DLL safe: it can be set whenever a DLL is being built.

Removed the include of sys/types.h - apparently unnecessary now on the
  platforms on which it happened (all but Mac OS and RISC OS).
Moved the Mac OS test into pngpriv.h (the only place it is used.)
9 files changed