Fix warnings

Fix warnings for both ARM and x86 to be able to use the same warning flags in bazaar branch and upstream ofono.