Small changes to be able to build Jersey on JDK8.

Change-Id: Id1f30b2f696f7ecb5c4b5f011f0d2563cdc5f594
Signed-off-by: Michal Gajdos <michal.gajdos@oracle.com>