Merge pull request #184 from agtorre/cmake

Cmake latest changes
Merge pull request #187 from agtorre/cmake

Cmake merge
Merge pull request #191 from agtorre/cmake

fixed make install, changed programs,files,etc to targets
Fixed use of uninitialized memory
Merge pull request #192 from thewacokid/cmake_fix

Fixed use of uninitialized memory