fix mingw32 searchpaths