Fix linux build

With this set of commits the debugger builds and runs on Linux.

Tested on Gentoo Linux, gcc-4.7.3, glibc-2.17, wxGTK-2.8.12.1

Known caveats: pcsx2 has an unrelated build issue with gcc-4.8, which this patchset does not currently resolve