Made SWI work on Windows. Added support for XSB.

Hi Mark, nice to see ediprolog on github. I made some changes to make it work on Windows. I also recently added support to XSB. I hope you like the changes. I tested both modes on Windows but have not done so for other systems. There are still some minor irritations related to line endings and I may create a ticket on your repo. Basically on Windows XSB mode has extra carriage returns while SWI does not produce a newline between answers.

Note I reverted the interaction to send "\n" in addition to the key pressed to keep XSB happy. It doesn't show any ill effect for SWI on my system either.