fix test for debian machines wrt pthread ldflags
Setup returns exit code now. Don't grep the logs.