Support the o, f and p options, patch by Magnus M�rtensson