Fixes #5719: add support for large int on ansi systems