Merge "Use fnctl.h instead of sys/fcntl.h for O_RDWR"