(x_get_resource_string): Re-add for non-toolkit builds (bug#4461).