Xorg 64bit waits for a 64bit integer... So change the cast accordingly, using uptr maybe better,
will see...
Build GSdx again