fix for PR#16552 implementation on windows: CFG_LIBDIR should be always set

A fix for a windows problem pointed by @retep998 in the issue#16552.