Added preprocessor directive for boost filesystem v2 vs v3.