Replaced calls to native Windows threading and synchronizaton APIs with boost::thread functionality.