Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define

See #1605
Merge pull request #2687 from fredj/legacy-ie

Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define