Add missing import: errno

fixes #839
Merge pull request #853 from danohuiginn/errno

Add missing import: errno