Build: Support boost versions compiled in C++11 as well as C++03 mode

Issues related to boost::filesystem and scoped enums