homebrew: fix maverick include bug

This change fixes #20449 

Are my comments ok? (I am not a native english speaker)

cmake compiles, but is this the right way to fix this?