A Unified Approach to Piecewise Linear Hopf and Hopf-Pitchfork Bifurcations