Add proper package handling for antlr4 targets

Testing Done:
I've tested it locally with grammars we use internally. I might add that before this patch, using the antlr4 compiler was broken and couldn't be used at all.

Reviewed at https://rbcommons.com/s/twitter/r/298/