got rid of compilation error in thead.c