Use system headers a bit more: use host's fcntl.h for O_RDONLY etc.