adding -g to CMake debug flags; fixing segfault in chem tuff