Add a -gd postfix to debug build.
Make search methods virtual.