Make it possible to build with JDK 6