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