Restored Contiki compatibility with non-C99 compilers.

(and compilers without non-standard extensions like void pointer arithmetic)