Cherry-picked update of Android toolchain and memory barrier implementation for Unity 4.x