fix compilation
remove useless lines
fix size_t format handling