code cleanup; make libDci static; add C/C++ compile flags; whitespace; better control