Hopefully improved detection of third-party dual xinput/dinput pads

I will keep an eye out for regression reports since I don't have any unofficial pads to test with, but similar code is suggested by Microsoft so I expect it will work correctly.

Also fixed -std=g90 Windows build