avoid using File Control Operations defined in <fcntl.h> which has compatibility issue on windows. #169