Use int64_t and atoll() after discussion with johannes