changed fd.h so it compiles correctly