Bug fix for Windows compatibility.
Authored by: bruno.herbelin 2011-05-25
Parent: [r362]
Child: [r364]