fix Linux/Android compile errors