Fix build when debug is disabled