fixed autobuild system

fixups on the autoconf build system to parallel fixups for libvncserver.