Fix previous patch that had undefined reference to xwin