Help on SDL issues running QEMU on a Remote X Session

Hello All.

I wan to run Qemu from a Remote X session but I have been experiencing SDL
initialization problems. The idea is to have thin clients with an Xserver
request remote log-ins to a server via XDM or GDM. After logging in, the
users should be able to open a terminal and launch Qemu. I can log in to the
remote server and use all X applications. However, I have problems launching
Qemu because of SDL initialization issues. I have searched through the
forums and have tried specifying the SDL_VIDEODRIVER to use x11. But this
did not resolve the issue. Here are some details of my setup:

Server: Centos 5.2 X86-64

ldd which qemu => /lib64/ (0x0000003742c00000) => /usr/lib64/ (0x0000003743400000) => /lib64/ (0x0000003750200000) => /usr/lib64/ (0x000000394b800000) => /lib64/ (0x0000003743000000) => /lib64/ (0x000000374fe00000) => /lib64/ (0x0000003743800000) => /lib64/ (0x0000003742400000) => /lib64/ (0x0000003742800000) => /usr/lib64/ (0x0000003752600000) => /usr/lib64/ (0x0000003751600000) => /usr/lib64/ (0x0000003744c00000) => /usr/lib64/ (0x0000003746000000) => /usr/lib64/ (0x000000374ee00000) => /usr/lib64/ (0x000000374a400000)
/lib64/ (0x0000003742000000) => /usr/lib64/ (0x0000003745800000) => /usr/lib64/ (0x0000003745000000)

ldd /usr/lib64/ => /lib64/ (0x0000003742800000) => /usr/lib64/ (0x0000003752600000) => /usr/lib64/ (0x0000003751600000) => /lib64/ (0x0000003742c00000) => /usr/lib64/ (0x0000003744c00000) => /usr/lib64/ (0x0000003746000000) => /usr/lib64/ (0x000000374ee00000) => /usr/lib64/ (0x000000374a400000) => /lib64/ (0x0000003743000000) => /lib64/ (0x0000003742400000)
/lib64/ (0x0000003742000000) => /lib64/ (0x0000003750200000) => /usr/lib64/ (0x0000003745800000) => /usr/lib64/ (0x0000003745000000)

Client used for testing: Debian Etch

I would appreciate if anyone can help me with my issues.