Fixed the #define DIR thing, and a function definition mismatch. Not building due to get_fattime() not defined