better readline implementation between windows/not windows