Moar optimizations and 4.7

Change-Id: I6f739994b5ebe461892cb680e8eae6be8cc360c3
Don't build emulator

thanks to dhacker29