Moved the implementation of the pthread wrappers to dlls/kernel.

10 files changed