optipng: use system libpng & zlib, fix cross builds and add support for static builds