common: Fix build with wayland disabled on FreeBSD
HAVE_WAYLAND is always defined. We should check whether it is set to a non-zero value instead of checking whether it is defined.
HAVE_WAYLAND is always defined. We should check whether it is set to a non-zero value instead of checking whether it is defined.