fix atomic pointer ops on windows