Fixed compile error in ServerInterface. Updated TCP sample apps to use std function event handlers.