backporting codeStyle fixes from OpenTechEngine

backporting codeStyle fixes from OpenTechEngine to allow usage of multiple codestyle related warnings including -Wall with minor discounts