Introduce version macros for 2.40