Setup main_entry and environment_get for proper building of
argc/argv for console/mobile ports with non-conformant argc/argv
input values