Get rid of all compiler warnings at the cost of some more #ifs