Build fixes for android drivers and compiler warnings