OSX64 backport, liveness, android fixes