Added compatibility for older boost filesystem versions.