fix compiler warings

I fixed some of them, but still a lot to do...