Porting core files modified by ORPL to Contiki-2.7
Ported to Contiki 2.7