when linking a static lib, you can decrease the size of your output program by way of the following option: /OPT:REF