syncd library.js errno codes with sys/errno.h
Updated tests to reflect new error values
Merge pull request #1225 from inolen/errno

synced library.js errno codes with sys/errno.h