I don't have a good solution either. But the situations, a user may choose not to use png in poppler, therefore he/she won't need to install png and link with it here. So it doesn't make sense to add a hard dependency here.

I'll try to setup a mingw and try different combinations.