Fixes quite a few compilation warnings

Most of the compilation warnings this patch fixes are related to the
types of the strings being compared.