Fixed compilation issues when the DEBUG symbol was turned off.