Use systemerror where appropriate.
Merge pull request #54 from lucasb-eyer/master

Use systemerror where appropriate.