configure: Fix build with XFree