This allows building FlatBuffers with gcc on macOS: - avoid linking libc++ when not using clang - look at compiler first, then OS-specific options Signed-off-by: Rafal Kapuscik <rkapuscik@antmicro.com>