Fix endlines for logging via OutputDebugString().
Don't corrupt XInput device state during SDL_SYS_JoystickClose().
Change order we enumerate Windows joysticks.

Make it so XInput devices are listed before DirectInput devices, and that the XInput
 devices are sorted by userid in ascending numeric order (so device 0 comes first).