Added FFI definitions of zctx-, zbeacon-, and zsocket-related functions.