Fix thd_join on win64