Add support for host objects in older environments