[fts] Reworked Boost name clash patch