Adapt url_cgi_path in cgi.cfg, so that icinga2-classic doesn't trigger csrf protection
Fix build warnings

fixes #6488