enable gcc warnings and fix all warnings
Merge pull request #44 from jpoimboe/gcc-warnings

enable gcc warnings and fix all warnings