configure.ac: Disable features on DJGPP/DOS.

This automatically disables shared libraries, threads and sockets when
compiling for DJGPP/DOS.