Add one common lib.
Add get numeric thread id function.