GCC 4.6: Fixed most warnings obtained with pedantic flags (-Wconversion)