TS-2128: Fix TS_SEARCH_LIBRARY for RHEL5

Looks like m4_ifval isn't present in older versions of m4, however
m4_default is probably a better choice anyway.