Compilation fix.
Compilation fixes for Boost Filesytem version 2.
Merge pull request #319 from hernando/master

Compilation fix.
Fix OSX build