Fix style issues in libsearch