Update cmake files with correct depends and misc deletes.

Update cmake so that the dependencies are correct for es_core, czmq and ogre.
Also, delete the weird add dependencies commands.