fix thrift if erts already got thrift installed