fix constantness definition for all compilers