Fix building lib_bloomd_runner on OSX
Refactor type compatibility for scandir