Cleanup `isHostType` and update vendor/platform.