Partially broken fix for Win32 ReadLine support, but it is a start