BUG: Fix string to int64 conversion on 32-bit platforms

closes gh-4575