Crude debian-specific fix by just patching generated configure script.

There's a patch for this issue in upstream's trac but it's against 2.9.x and
doesn't apply to 2.8.x.

--- a/configure
+++ b/configure
@@ -25060,6 +25060,8 @@ echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
 echo "${ECHO_T}$wx_cv_std_libpath" >&6
 
 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
+debian_multiarch_triplet=`dpkg-architecture -qDEB_HOST_MULTIARCH`
+SEARCH_LIB="/lib/$debian_multiarch_triplet /usr/lib/$debian_multiarch_triplet $SEARCH_LIB"
 
 if test "$build" != "$host" -a "$GCC" = yes; then
                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
