issue #112 Segfault in tchdbopenimpl()