This is not a compiler issue. The fog isn't rendered properly, because there are not enough varyings. I have a patch that reuses unused color varyings for texcoords. It fixes the fog, but it also breaks a lot of other things.