Added host config with via setting
Fixed compile errors