Add support for Java 6

I like coding with Java 7 more in general, but wanted to use this with a project that's still on Java 6. Seems like supporting Java 6 isn't too much of a burden given that it's only a few extra characters.