Use BOOST_HAS_PRAGMA_ONCE.
BOOST_HAS_PRAGMA_ONCE
Remembering to first include config, so that it'll actually be defined.