Add missing include which clang needs to compile.
Switch all constants to constexpr.
Initialize index in merge.
Add -Wno-missing-braces for clang (which is default in gcc >= 4.8)