common: fix warning on freebsd