Update THREAD_SOURCES in Makefile