[BUGFIX PATCH] selftests: Fix pthread link option