Handle guards

This makes livestatus build on top of https://github.com/naemon/naemon-core/pull/86