Build extensions only when need