build fixes, and made the linked list functions support lambda predicates
merged
build fixes