Move constants to cpp for c++11 compatibility.