Ignore unsused typedef.

GCC warns about it.
Fix wrong std::cerr at end of output.

It should be std::endl.
Courtesy of GCC 5-svn, it refuses to compile these.
[C++11] Follow the C++11 specification of operator new.

The signature changed in C++11 which we require now.
To get more details see the mailinglost in October 2012.