lib/replace: prefer inttypes.h over stdint.h