fixed compatibility issues with Contiki 2.7 net api