Make code 1.6 compatible and change target to 1.6
Merge pull request #5 from jussimalinen/master

I never realized I'm using this 1.7 syntax there anyway.
Thanks for that patch.