Fix build errors Part_1
Fix build errors Part_2
Applied some of jolla-kernel's default settings