Fix all warnings seen on a x64 Debian Wheezy

Most of the warnings were due to inadapted variable cast during
printf. They have been replaced with portable definitions as
defined in inttypes.h

Signed-off-by: Mathieu Olivari <mathieu.olivari@gmail.com>