Fix conditional compilation to work with 7.4.2.