refactored strdup() (now it's ccnl_strdup), this shaved 100 lines from ccnl-ext-nvnkrivine.c