add workaround for mingw `ld --force-exe-suffix` behavior