move geterrstr out of dll