Add .editorconfig.
Ignore build dir.
Fix enabling C++11 support for GCC and Clang.