Use `BOOST_HAS_PRAGMA_ONCE`.

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

[SVN r86726]