Got rid of pthread

Signed-off-by: Gerco van Heerdt <gercovanheerdt@gmail.com>