Fixed compilation issues with no logging mode