add libdbdog.c in order to compile in linux and fix some bugs such as out_len is uninitliazied in tc_decrypt