Fix inline template warnings