Compatibility shim for GHC primops