Updates for API changes in newer heka versions.

Ran into this trying to compile against Heka 0.8.0. Hope this helps!