[Build][Windows] Fix compile/link flags for pthread.