eal: move CPU flag functions out of headers