Fix railties and actionmailer dependencies.