Added WinMain entry for wlua target. Fixed Visual Studio builds.