fixed to work with latest bindgen created wrapper. async.rs is the most usable example