Switch over to using _beginthreadex
switch to using beginthreadex