Also added missing dna_helper.c file from previous changes. moved sigpipe/sigio detection code to own file.