Fix compilation issues

The bootstrap-configure adds -Werror flag that turns all warnings into errors. These commits fix build warnings and enable successful build. Biggest changes are for int / unsigned int. The ril uses int for everything in the messages. Converted to use int in that interface.