Fixed InterLocked* function definitions for non-x86 platforms in