Trying to fix 'O_BINARY' was not declared

Essentially copy pasta from https://github.com/aseprite/aseprite/blob/master/third_party/mongoose/mongoose.c#L234 I don't know what I am doing here.