fix X11 discovery on non-x86_64 platforms

Reported and patch proposed by Eric Bavier in
https://rt.cpan.org/Ticket/Display.html?id=95590