refactoring:
- move platform-specific threading API into namespace platform.

update:
- add SDl2-specific thread API implementation.

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>