Fix a boost::bind compilation error with closedir(). Fixes issue #982
Compile libev and libeio with EXTRA_CFLAGS instead of EXTRA_CXXFLAGS. Fixes issue #988