[libraries] make sensu 1.8/9 friendly