Fix linkage errors on Windows in header-only config