Fix build for recent Cap'n Proto interface change and mostly-support generics.