This file looks almost identical to Atomic_Win32. Could you just use that with some ifdef's?