Stochastic control of SDEs associated with Lévy generators and application to financial optimization