Change of API with the last version of Osmium

Hi :) 

I discovered your application yesterday and tried to compile it with the last Osmium version but it failed. I did some change to use the new API. It seems to work good.

Thanks for your work