Cleaned -Wunused-variable and -Wunused-local-typedefs warnings for a cleaner build experience

These rogue variables have been causing a lot of mess on build output.
Cleaned them to make the build smoother (and prettier!)
Everything else is unaffected.