According to the guys over at BNA, putting eyes on the top of your helmet works. You can also put cable ties in the vents of your helmet to frighten them off.

One other option is to carry a long stick & wave it in the air Don't try that at home...

Be careful! I would hate for you to end up like the poor girl last year that had her eye gouged by the stupid magpie