fix warnings in ccnd, and enforce -Werror for C