util: moved nt_errstr() into common code