Fixed xml_parsers to be faster

The new ones use select, and make far fewer system calls.
Downside: select is not avalible on windows.