Changes to compile with Pig versions 0.11 and up