Do not use constexpr as it is new in c++11

Only the unit tests should depend on c++11 feature.

Signed-off-by: mat tso <mat-tso@topmail.ie>