Fixes to get java examples compiling against twitter commons.