Fix build errors and disable strict aliasing for now

Change-Id: Ic82da77c7416c3e1f272ce43f37507bcfad94ed6

(cherry picked from commit 14bf48e6eae582f6f9b25b1b9c407fb6f1d59d61)