fix build system for X, XShm and Xv

Original commit message from CVS:
fix build system for X, XShm and Xv
2 files changed