cmake: set a default value for LIBEVENT_STATIC_LINK (cherry picked from commit 86eafc03433cb5719e5b75ff99ffab8633433a17)