Fixed compilation on windows (code was not standard C)