initial approach to fix RT#93207

RT#93207 describes how XS implementation of minmax looses precision for
64-bit integers and maybe above. This code change to rely on Perl's
internal implementation for ncmp operation should completely solve it.