fix compilation error in ratelimit module

get_counter() function is not exported in 1.8
Thanks go to Nick Altmann for reporting