Functional calculus for some perturbations of the Ornstein-Uhlenbeck operator