Fix compiler warnings (wip)

refs #4756
Merge remote-tracking branch 'icinga2/master'