Fix compilation on Windows and Mac.