Attempt to detect IE in compatibility mode.

Detect IE in compatibility mode. 
The reported version of IE that return the mode es incorrect if the browser is using the compatibility mode.
Based on https://gist.github.com/jasongaylord/5733469

(I don't know if this is useful, I just need this to avoid the load of javascript in compatibility mode)