[core] Fix signed/unsigned comparison warnings
Merge pull request #140 from plopresti/warnings/gcc412

[core] Fix signed/unsigned comparison warnings