libwinpr-thread: fix build on Windows