[pim] Compile fixes for FreeBSD.
2 files changed