api: fix size_t printf exception in vstudio