[cleanup] Fixed compilation warnings, applied codestyle