[CMake] Update host platform check for macro support
"Support Macros in Linux" patches was inconsistent with checking
platforms. Some only checked 'LINUX' but some matches
'LINUX|ANDROID|OPENBSD|FREEBSD'. Although I don't have tested other
platoforms than Linux at all, there's no reason to limit it to Linux.
So use the consistent check to match 'LINUX|ANDROID|OPENBSD|FREEBSD'
(cherry picked from commit 8049922861e80b79b718db54a35f5f97185a11c7)
(cherry picked from commit 714589e8258a2bbc6df42679db523efdd23480d6)