[fabbione/kronosnet] b0c82f: libknet: Small fixes for errors found by GCC 7.1