Fix compilation on windows

const int wasn't detected as compile-time constant.