Switch from thread to pthread_creat

For now untested, but it compiles
Add RIOT defs to single_read_queue

Clashes with logging