[compiler] Add another point of specialization for extension

Allow to specify the extra headers needed for functions declaration
header.