use __atomic on mingw