mingw: get rid of getpass implementation