Fix most warnings