Compilation fixes for Boost Filesytem version 2.