Add unix dependency, relax bytestring version dependency.
Homegrown implementation of atomicModifyIORef'.