JCR-2217: Cannot build JCR with Java 7