Modify mingw_main() workaround to avoid link errors