Build fix for FreeBSD/OS X.