Add forward declaration of struct _XDisplay to fix compile error when includes are in different order.