fix gcc warnings
Merge pull request #5 from jandd/master

fix gcc warnings