use createsemaphore and waitforsingleobject successor to support winrt
use createsemaphore and waitforsingleobject successor to support winrt

jpetso/libtorrent,jpetso/libtorrent,jpetso/libtorrent,jpetso/libtorrent