Add missing constants for FreeBSD and OS X.