Replace typedefs with c++11-style aliases.