Add #ifndef O_RDONRY

If O_RDONRY was not defined, preprocessor try to define it