Map global.errno to the one in node context.