Fix compiler warnings about different sizes and sign.

Fix compiler warnings when compiling in 64 bits the PPC, and both ARM archs.