Fixed compile errors on android