Add 'thrift'.
thrift: Fix build errors.

This fixes an error involving '_FORTIFY_SOURCE' and a java error.