int AppMain(int argc, char* argv[]);
AppBase Main function body used on some platforms.
Returns 0 if successful and -1 for errors.