CPP: Remove uses of std::{cerr,endl} in production code.

They generated static initializers on Clang/Mac.

This also adds the previously missing <algorithm> include in unicodetext.cc
causing a compilation error on VS2013.

This is a squash of (very slightly modified) patches contributed by thakis@ and
yosin@.

R=roes@google.com

Review URL: https://codereview.appspot.com/14930044

git-svn-id: http://libphonenumber.googlecode.com/svn@621 ee073f10-1060-11df-b6a4-87a95322a99c