This PR adds extern "C" for the header files in core folder.

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