lbdb: fix build on darwin
Merge pull request #2509 from lovek323/lbdb

lbdb: fix build on darwin