Fix build on FreeBSD.
ProtGranularity is the same on all Unixes, so only need one implementation.