Fix compilation warnings

64 bits integer types should be explicitly casted to
long long types, with the correct sign, when using them
as arguments to functions of the printf family.

Change-Id: I7cf62fffe535e9cd08538251a480d656c3c78d91
Reviewed-on: http://review.couchbase.org/26818
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Reviewed-by: Fulu Li <fulu@couchbase.com>
Tested-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>