Fix compilation on win/mac