Fix CMakeLists.txt for windows

I had to make a couple of small changes to the CMakeLists.txt to get it to properly work on windows. Since .dll files are considered binaries rather than libraries, the script would install the .lib files but not the .dll files.