Make sure code compiles on Ubuntu 12.04 with boost 1.46

Work with permissions in boost::filesystem was introduced in boost 1.49