Fix linker errors with base_prefs_test_support on Windows