Fix linking with Boost if C++ versions don't match

BOOST_SCOPED_ENUM is implemented differently in C++11 mode

This means that Boost.Filesystem ABI depends on what C++ version was
used to compile the library. This commit checks for that and forces
the correct BOOST_SCOPED_ENUM implementation.