Fix libpng detection for static libraries
Merge branch 'master' of https://github.com/chocolate-doom/chocolate-doom into crispy-doom