avoid DTLS role change on reinvite

Fixes #43
dont break log lines when logging to stderr
fix pointer const declaration and make it static