Fix xlib link errors.
Merge pull request #32 from jdm/linkfix

Fix xlib link errors.