Livestatus: fix some compile problems on lenny