Made compile_wire_func not take an env_t.  Cascaded changes.