Add optional extensions dependency