Add changes to compile for Elasticsearch 1.0.0.Beta2