Update atomicInc/Dec to have same semantics on msvc and gcc

__sync_fetch_and* return the old value of ptr, whereas
Interlocked* return the new value of ptr. This change
updates both functions to always return the new value.