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

Ticket: http://www.rudder-project.org/redmine/issues/5719

To be merged in 2.10