Revert "av: Fix compile errors"

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

This reverts commit 21cec9f9f7b4d4ed7d27e29f243670b739e7e0f1.