The vanishing approach for the average continuous control of piecewise deterministic Markov processes