Fix Ruby-1.8 incompatibility 

Replaced some Ruby-1.9 style Hash syntax with 1.8 style hash rockets to maintain backward compatibility.