replace 2.x syntax w/ 1.9 compatible equivalent
Merge pull request #8 from pezra/fix-for-1.9

Fix 1.9 broken builds