Fix warnings from -pedantic.
New doesn't returns nullptr on failure, it throws std::bad_alloc.