Fix building with older libvncclient versions (e.g. on Ubuntu 12.04).