I usually preface "on your left" with "I'm going to pass you". It seems to work well, and I've not yet had someone freak out or swerve into me.
By the same token, I appreciate hearing it from behind me. It always makes me jump when someone just blows by me.