Fix PerlIO_get_cnt and friends

These functions worked with ints instead of SSize_t,