fix rails 2 build