Make sure fcntl.h is included.

Needed for declaration of open(), plus definitions for O_RDONLY and O_NDELAY.
Merge pull request #1272 from blipvert/fixes/29

Make sure fcntl.h is included.