Fixes #597, compile issues with boost filesystem2.