Fix #2: Handle missing errno constants

Some systems may not have all the same errno constants, so if any are
missing, fall back to just using the error number.