Fixed dynamic sample and sample framework on Windows.