For context_t, detach pthreads rather than join
Link subproject dynamic libraries correctly