Fix and improve mode flag.

Since `S_IEXEC`, `S_IWRITE`, `S_IREAD` is BSD extension it can't be used in some POSIX env.
So replaced it with POSIX name.
Added `S_IXUSR` binding too.

(The travis fail is related to: https://github.com/mruby/mruby/pull/2222 )