Fixed: using boost::filesystem::copy instead of boost::filesystem::copy_file. Addition fix to the the previous patch.