Add option to disable building the thrift compiler

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
Do more auto detection for configure options.