This library used to be provided by HXCPP, but it was removed in version
3.4.185. Fortunately, it doesn't seem to be necessary, so this commit
stops Lime from attempting to link with it.
When building a Lime application in debug mode on Windows, the console
subsystem is used and Windows looks for a 'main' function. However, the
Main.cpp file used when linking statically always defines a 'WinMain'
function regardless of whether the application is being built in debug
mode.
This commit adds an additional check in the Main.cpp that defines a
'main' function instead of 'WinMain' when building in debug mode.
It seems keep is a macro in newer versions of haxe, and is the preferred
way anyway. I can't manage to get the compiler to remove the Main file
no matter what, so removing it provisionally. It causes FD and probably
more to choke on the code complete step when it throws errors from the
--macro option.
This can be readded if keep is really needed, but it doesn't appear to
be (or if it's using the incorrect keep syntax then that could be
corrected).