Handle O_PATH

The O_PATH flag was added in the 2.6.39 kernel and is Linux specific.

Signed-off-by: Andrew Clayton <andrew@digital-domain.net>