add project type to link libraries correctly

courtesy of http://www.kitware.com/blog/home/post/231