on Windows if using Visual Studio; if using MinGW, try to stick to the original main() entry point.
do not open a console at startup.
and the OS X port.
to ios-image.cpp, but disable it on OS X because UIKit isn't available.