Remove bstrlib dependency on hashmap