It's almost always apple's own iMessage app that gets compromised; so they can use whatever library they want.