syscalls/open11.c: Add ifdefs around O_DIRECTORY

Fixes build on systems with older glibc headers.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>