Use PRIuMAX/PRIdMAX instead of PRIuSIZE/PRIdPTRDIFF

The latter aren’t available to Ruby 1.8.7