Add CreateThread wrapper for windows.