Remove bstrlib dependency on bstree