Added WinMain function for building without a console