fix constexpr for swig < 3.0