Revert "av: Fix compile errors"

This reverts commit a229873219346a2890fdffb359abfaad12d4645c.
Revert "Fixing aliasing violations, C++ 11, and gcc 4.7 changes from linaro."

This reverts commit 028ed7c20c5ae270af308dceaeb12f84217fa656.