Back ported the "enabled_extensions" from ST3 branch.