chore(travis): compile with multi mode
chore(build): add arg for select compile mode
chore(build): add pthread deps for tests
chore(statsd): check socket before send data
test(statsd): add udp server