Add errno.h, remove setbuf which is deprecated
Merge pull request #12 from jeanguyomarch/master

Add errno.h, remove setbuf which is deprecated