Merge pull request #331 from denis2342/master updated the pkg-config patches, now with mingw support and tested