Fix linking with AWT libraries on Ubuntu 10.04.