Compilation error fixes for Linux and Android.