script to install thrift on either debian-like or centos-like machines with java, maven and ant dependencies