fixed a bug with case-sensitive non-unistring compares
identified bug in daemon when compiled for production; stdout/err closed, writing to them probably causing connection closure
fixed bug in production daemon rejecting client connections due to printf() after stdout closed, replaced with lprintf()