lbdb: fix build on darwin