fts: add #if guards so that the fts_lgpl module still builds