Fix warnings under advanced compilation.