While dynamic linking works on linux & Mac OS due to rpath support Windows can't find the dll when debugging the test case unless it's copied into the tests builddir or it has it's working dir set to the DLL's builddir.
Also prevent compiler complaining about inconistent dllimport/dllexport linkage by ensuring KM_KBP_EXPORTING is defined on Windows too.