I have a problem when closing the search tabs until today, I currently use wx-2.8.6. I always close the tabs in the reverse order of creation, and I never use the X on the tab to close it, I always use the right button menu.
To make aMule use a library, you have to configure it and compile it with that library. Something like this:
$ ./configure --enable-ccache --with-denoise-level=3 --enable-debug --disable-optimize --enable-verbose --enable-geoip --enable-cas --enable-wxcas --enable-amule-gui --enable-webserver --enable-amulecmd --enable-amule-daemon --with-wx-config=/home/myuser/usr/local/wxWidgets-2.8.6/bin/wx-config
$ LD_LIBRARY_PATH=/home/myuser/usr/local/wxWidgets-2.8.6/lib/ make
$ LD_LIBRARY_PATH=/home/myuser/usr/local/wxWidgets-2.8.6/lib/ src/amule
Notice that in my case, the library is not on the path or ld.so.conf, that is why I use the LD_LIBRARY_PATH variable. I also have compiled wx myself and saved it in my home directory in order not to mess with the system's wx and the other users of this machine.