consider both lib and lib64 paths