Fix compilation errors for ftsh

This pull request corrects some errors in the ftsh sources that were preventing the project from being built properly.