Add support for "oldie" kernels

Older Linux kernels do not support the close-on-exec feature.
On these kernels the function inotify_init1() and the macros
O_CLOEXEC and IN_CLOEXEC are not available.

This is a fix for issue #24.