include libkern/OSAtomic if available
Merge pull request #37 from tenderlove/compile

include libkern/OSAtomic if available