JustArchi build optimizations (-O2) from https://github.com/JustArchi/android_build/commit/0cf89401cc8092dda959b5746ec4899fda756cec

Change-Id: I8d6e78e6f89858ee05e62ed768fabc33dc0e93a5