fix several -Wextra warnings
Merge pull request #352 from cgzones/wextra

fix several -Wextra warnings