native: OSX: Fix rpl_udp example

this undefines the macros clang complains about and reorders some header includes needed.
Fixes #1165