Replace atomicModifyIORef' with atomicModifyIORef.
Get rid of DynFlags for GHC 7.4.