Redefined die for compatibility

Now works with both HEAD and 7.8.3