Fix compiler warnings (a lot)