Endogenous labor market participation and the business cycle