Add initial socket module implementation (via FFI).