This required a bit of work as Solaris has gethostbyname() and
socket-related functions not in libc but in libsocket and libnsl.
So add corresponding checks to configure.ac.
Moreover, make para_gui optional and add configure options for
specifying the directory containing the curses headers and curses
lib.