Using boost::call_once to guarantee thread-safe static initialization.