Fix BTextTools; fix building