Second try at fixing build with older libvncclient versions.

This should fix e729c42ee9e77bbced1abfb712899dea2914b740.