Don't replace cflags with thread_cflags, only append the latter