Fix issue where Windows build got bloated due to debug libraries.