netx/xc: add a few "const"s to fix compiler warnings