Ubuntu and Debian compatibility fix

The package would not compile on Ubuntu and Debian, which have an older version of the base package.
There were dependency incompatibilities between the specific versions required and the versions available of packages such as bytestring and unix.
I removed the specific version numbers for dependencies and compilation now works fine.

The only code change was copying atomicModifyIORef', which is only available in base 4.6.