ccnl: duplicate variable names

Some variables had multiple definitions, but could be removed or
declared with a smaller scope.
rpl: moved headers to sys/net/include
net: changed name of internal variable

To avoid naming conflicts + made variable static and volatile as it
should be.