As with driving in the car, I find it best to just hold your line. I generally only nail squirrels with my car when I try to swerve around them. Even when I would have sworn I would have tagged one, holding my line, I'm surprised when I look back and don't see him in the road.
On the bike, I yell at them as I approach GIT GIT GIT. So far so good