Add missing string termination
Add command line options to specify local port to bind to and host:port of LWM2M server to connect to