[GHC] #16166: Compiling with profiling on Windows can cause linker errors