Third try at fixing build with older libvncclient versions.

This should fix c60c4cae5164de12a4c9910aa4cd85b199aec722, which should have
fixed e729c42ee9e77bbced1abfb712899dea2914b740...