fix compile warnings:
- unused typedef
- already defined