backport LoadError monkey patch