fix some compiler errors in android and fix a build error in appveyor(msbuild)