Use cDefine to get numerical values for errors.
Merge pull request #1488 from waywardmonkeys/errno-definitions

Errno definitions