work around missing funciton in readline for windows