Add support for errno in plugins.