Switch -lpng and -lpngwriter libraries

With the prior order: -lpng -lpngwriter I got several errors like
/pngwriter.cc:1540: undefined reference to `png_create_read_struct'
when compiling the examples using cygwin.