make inotify support work on glibc older than 2.13