xcommon.c: fix warnings