Revert "fixed aliasing violations only"

This reverts commit 627959b846b773867406bcfddd0a049f1d84ada3.
Revert "Revert "Fix aliasing and C++11 issues.""

This reverts commit 82dbc8d47b1e24907f092650689d8414683b1792.