Added thread local storage macro.
made Doom3's thread function thread safe.
changed most __forceinline to __inline.
fixed silly bug in sikkmod d3xp.

Signed-off-by: revelator <ralphengels@gmail.com>