[installer][host] get rid of a few warnings. And labsin was right in a sense, negation of ints and putting the result into an enum/int is, well, not good