Compatibility with cstruct and Core.Bigstring
Merge pull request #13 from samoht/master

Compatibility with cstruct and Core.Bigstring
darwin: O_CLOEXEC is not defined on Mac OS X 10.6
darwin: add missing <string.h> header for strcpy