The build needs to output a shared DLL when a test build is requested and debug.c needs to point to libsear.so.