[tor-commits] [tor/master] Only use -levent when checking functions if we will use it to link.