Allow to disable filter threading for systems without std::thread support
Add support for windows msvcrt.dll's swprintf through mingw
Don't use pkg-config on OSX to detect zlib