add extra message sinks configurable through filter template
fix filter template terminate problem
fix uninitialized socklen_t problem
add missing header
fix compile error in gcc 4.8