unused local typedef warning fixes for gcc 4.8. Fixes #3