Fixing errors in the CMake files that were causing Visual Studio to freak out with linking.