Jersey compatibility fixes