Fix linking error of the non-GUI Wine build.