added bstrlib in foreign directory