Prepare for deprecation of Foreign.unsafePerformIO