#2866: fix import and compilation issue