Add errno to the IOError type