Add debug library

All debug libraries were generated with static link to the runtime
library, They are in the same path of the release libraries but have the
letter D attached to the name, this will simplify the CMake script

Also the cmake was modified to reflect on Windows build only