Fix build with GHC 7.8 (unsafePerformIO was not in scope)

Before it was exported by `Foreign` as well. Not anymore.