Use boost for functional when the config is set