support on windows with pthread
Merge pull request #1 from bialk/windows_support

support on windows with pthread