With the msvc compiler you can also enable function level linking and remove unused symbols/functions from the code.

Compiler flags + "/Gy"
Linker flags + "/OPT:ICF /OPT:REF"

If not already done