building bfs shared library & update .h