Add support for different API versions when adding mod interfaces.