Update CMakeLists.txt

Updated CMakeLists.txt to fix broken dependencies under Windows.