Fix the build for GHC 7.4.1

There was a lingering dependency bug in the Cabal file and a use of atomicModifyIORef', which is not in older versions of base.