Fix more GCC4 narrowing conversion warnings

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>
Fix more GCC4 narrowing conversion warnings.

* Code style would be to fix.