Fix thrift makefiles