This patch conditionally adapts the one line needed to support boost filesystem version 3 (default in Boost 1.46+ and required for 1.48+) I have tested it with Boost 1.41.0 to verify it still works on these older versions too.