* threads.c: fix various preprocessor usages of new public