Fixes for tyle conformance
Fix compiler warnings on linux
Fix crash bug

Doh!! Renderer used before initialized.
Fixes for style conformance