remove a bunch of compiler warnings

This makes examples/cc2538dk/udp-ipv6-echo-server and my custom CoAP server compile with zero warnings using the GCC 4.8.3 toolchain. Nothing really intimidating except a few uninitialized variables. It's better to build a completely clean project. Nothing breaking as far as I tested.