Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define

See #1605