Fix Linux and Android builds