Fix gcc "comparison between signed and unsigned int" warnings