cmake improvements

* Moved cmake commands to lowercase

* added automatic detection of OCE

* cleanups