eal: fix compiler detection in public headers