Fixed unused vars warnings.
Fixed -Wformat warnings for size_t.