Updated cmake install to match debian package on ubuntu.
Improved cmake build deps.