GCC 4.8: Fixed unused local typedef warnings.
Clang 3.0: Fixed all (reasonably fixable) warnings.

Flags: -Werror -Wall -Wextra -Weverything -pedantic
       -Wno-padded -Wno-weak-vtables -Wno-unreachable-code