caps: Fix platform checking

The "#elif __FreeBSD__" line caused a warning, because __FreeBSD__ was
not defined.