Product market imperfections and employment dynamics