Fix readline for windows