Use find_library from BinDeps
Refactor find_library code