Add files for thread compatibility with RIOT

These headers implement thread, mutex and condition_variable
based on RIOT thread and mutex. A new configure option allows
a build for RIOT and uses these implementations instead of the
STL ones.
Exchange header includes from STL to CAF wrappers

The wrappers allow compatibility with RIOT.