compiles on windows and linux, need some work to locate libtiff on linux
cleaned up cmake files