Fix compiling with base version < 4.6.0