support libevent compatible mode.
change scons script to generate config.h
config file