Fix 1.9 support, add rake-tasks