Fix build for 3.8 and earlier

Issue introduced by fb83a50.