Patches provided by Bruno Santos Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1832