Fix compilation on non-windows, had not tested this before and was missinga platform include.