Port tests to windows and add to cmake build.
Fix up threading code from port tests to windows.
Merge branch 'master' of https://github.com/zeromq/libzmq
Fix running tests from cmake on linux.
Merge pull request #624 from ricnewton/master

Port tests to windows and add to cmake build.