Added Windows API for atomic operations.

Signed-off-by: Skixbmc <fred@wppd.info>