Fix syntax errors on 1.8.7 rubies