Various fixes for android devices below 4.2