Fix most compilation issues