Better never compare nonzero floating point variables with "==". As you see, some compilers just don't like this. And we're not going to fix the compiler.

But it's interesting. Which DirectX SDK version were you using for the external compiler?