Fixed problem with MS Windows API

Signed-off-by: sebhz <seb@zyglute.fr>