Added named module declarations for xhook and xdomain.