Build fix for FreeBSD