bindings: fix malformed bool return using c99 bool