fixed dependency build clean
wrote pthread test
it deadlocks :(