build: add tracing option.
socket: get socket stream abstraction working.
trace: update printf macros