Removed SCTP support.
Removed jpake support.
Fix a whole bunch of memory leaks.

Adapted from a patch by the OpenBSD team.