MHD Simulations of the Global Solar Corona and the Solar Wind