fix linux and android compile