added the necessary changes to compile with CDH3
Revert "added the necessary changes to compile with CDH3"

This reverts commit c3725aa25de89ed4e223a8ba98d5a52449b8bd3a.
build for CDH3