examples: add extern "C" to headers

This PR adds extern "C" for the header files in ~~core~~ examples folder.
Its only `rpl_udp.h` here