Target Java 6 in template

This should allow JDK 7 to be used without the various issues cropping up.