Fix some gcc warnings (comparison between signed/unsigned).
Fix some cppcheck warnings (Performance: possible inefficient checking emptiness).
Change style : use `!` instead of `== false`.
Merge pull request #102 from Jarod42/WarningFix

Fix some warnings