Merged changes from trunk: warning silencing and support for SSE and C++11. Fixes #8495, #8697, #8509.