Move global in a dedicated cpp file.

As visual studio doesn't handle constexpr yet.