Multiple fixes for ubuntu precise with pbuilder build

Added some missing build-deps. Also fixed a linker error that reported undefined symbol errors from gtk and gdk, although they are present in the linker command line. The linker error was caused by the order of the libraries vs. the .o file.