Fix warnings and compilation errors with gcc 4.8

Signed-off-by: LaboDJ <jacopolabardi@gmail.com>
Compressed: optimize for Cortex A15
Fixes for screen dimmer and fast charge modules