Move the WelsThreadLib files to the common directory/library

This helps/simplifies building these files with the makefile based build system.

Alternatively, they could be moved into the encoder library, which is the only part that actually uses threading at the moment.