deps shouldn't be built if using the 'dynamic' target
avoid warnings from older gcc versions

complaining about violating the strict-aliasing rule when casting a reference to void **
avoid warnings from older gcc versions
check if the correct version of epoll is available

older versions don't have epoll_create1() and the timerfd was not available