Fix a few GCC warnings:

block/block_compact.c:186:3: error: cannot optimize loop, the loop counter may overflow [-Werror=unsafe-loop-optimizations]
block/block_compact.c:193:119: error: format specifies type 'uintmax_t' (aka 'unsigned long') but the argument has type 'long long' [-Werror,-Wformat]