Ensure the correct Thrift version is installed and remove .deb dependency on JDK