Orange County hammers out union agreement