Add missing imports when using --disable-sockets