mgwhelp: Replace search_func's tail recursion with a loop.
mgwhelp: Replace search_func's tail recursion with a loop.

Fixes issue #7.

jrfonseca/drmingw,jrfonseca/drmingw,jrfonseca/drmingw,jrfonseca/drmingw