allow implementation of extern interfaces in C++

Resolves https://github.com/HaxeFoundation/haxe/issues/3488