Guarded on_cgi_data() call by ifdef, thanks to Pavel Pimenov