Fix a few compilation warnings when building in release mode

Change-Id: I4741bf7088b3723eee9d0fb0d4cdeb1dc34ef7f0
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4228
Reviewed-by: Daniel Hecht <dhecht@cloudera.com>
Tested-by: Henry Robinson <henry@cloudera.com>
IMPALA-1213: Temporarily remove DCHECK and fix computation of rows ready to return

Change-Id: I25587e38d6ac22da58b2f68bb68aac5228c22bbd
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4227
Reviewed-by: Matthew Jacobs <mj@cloudera.com>
Tested-by: Matthew Jacobs <mj@cloudera.com>
Add #includes to fix packaging build

Change-Id: I44f1bdd1a86811796fceb9b8baec9b29fadbf492
Reviewed-on: http://gerrit.sjc.cloudera.com:8080/4248
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: Skye Wanderman-Milne <skye@cloudera.com>