Fix non-invariant compilation.