strip console.* statements from release builds

The console.* statements are mainly interesting for
debugging and can be safely stripped away.