allow implementation of extern interfaces in C++ (see https://github.com/HaxeFoundation/haxe/issues/3488)