Fix deprecation warnings about console output on Node v0.11.