Refactor native execdriver consts and build tags (close #7979)