Replace calls to g_key_file_get_int64()

It doesn't exist on glib < 2.26, and none of its callers really need
to accept 64-bit values.