fix: build failed if journal was not enabled