Fix Windows and Linux build