Create a factory method to create a virConnect object