Fix nearly all warnings