Update Makefile for compatibility with CDH4