build: fix build without JSON audit support