Oxygen abundances from infrared OH lines