Whig candidate Edward B. Dudley wins gubernatorial race in North Carolina