fix build on MSVC with --system-libpng or --system-libjpeg

This was introduced in WebKit r108792, as in the related bug
https://bugs.webkit.org/show_bug.cgi?id=32410#c26

it was confirmed as broken for Windows MSVC (for Chromium). The final
merge made it conditional for PLATFORM(QT) but did not fix the
underlying issue, which was the wrong placement of NO_RETURN as MSVC
does not allow __declspec(noreturn) to be put after the declaration
but GCC allows __attribute((__noreturn__)) at either location. This
is similar with the usage of NO_RETURN in other places.

Change-Id: I95ae3727553093b84b3645eb6dad63779f08e09d
fix build on MSVC with system libraries for zlib, libpng and libjpeg

The definitions in qtbase were used as a source.

zlib    => qtbase/src/3rdparty/zlib_dependency.pri
libpng  => qtbase/src/gui/image/qpnghandler.pri
libjpeg => qtbase/src/gui/image/qjpeghandler.pri

Change-Id: I41529493d382d693311f3a2c1a2590bf1406baff