Fix CMake files for visualizeModel that were causing build failure on appveyor