cmake

- Modified main cmake file to define separate target lists for cross
platform and platform specific targets
- turned off all warnings except standard violation
Small refactorings