Pointwise error estimates for a generalized Oseen problem and an application to an optimal control problem