Fix building with enable-trace