Another possible reason is that you need to have "GUI" in your main package config.
The reason is that Win32 builds GUI apps differently from console apps, that is why builder needs to know that you are building GUI.
(Package/project creation 'wizard' completely setups all necessary, but I guess you know this trying to recreate the process from the scratch to understand details, which I applaud...