securetransport: fix memory leak in error paths
macosx: remove unused intf_sys_t
macosx: fixed some memleaks, removed dead code and fixed some type problems in intf.m