Fixed some typedefs and the other examples.