Fix source compatibility with JDK 1.7