Fixed FileThread errors

Fixed some compilation errors from my initial implementation.