Stripped down atomic.h to contain only what ACT needs.