fix tests

- C host must explicitly be linked against pthread