Automatically detect whether the entry point is main or WinMain instead of depending on the subsystem type.