Fix bug with missing import of errno.