Compile nscd if have-thread-library. Rename nscd-routines to