Improve reliability of windows platform checks
Add fallback variant in i18n.c
i18n.c: fix compile error on windows
atomic_ops.h: Include Windows.h to make InterlockedIncrement/Decrement available

--HG--
extra : rebase_source : 93e8b7f5b844f01a30733a9dae33b7e4278d8e09
Refine strtod_l availability checks

--HG--
extra : rebase_source : bc630fe73aed8168730cfedc60aca137e6a550b8
Move '#include <Windows.h>' inside windows only block

--HG--
extra : rebase_source : 5414f38327cb9024a69b602541a7ef3bbf8e7fc9
Resolve compile errors with Oracle Solaris Studio compiler
Change atomic increment/decrement to use long instead of uint32_t.
This aligns better with what most platforms/compilers provide.