logger: fix builds without casper
We can enter capability mode only when Casper is available in the system.
Reported by: mjg@ MFC after: 1 week