Fix gcc warnings.

Unused variable and unused typedef in release build.