Make task_region more portable using Boost.Config helper macros.