Move from typeof() GNU RTTI to C++11-compatible __typeof__.