Gemfile & local build issues

This should fix up the local build problems (I think introduced by a slim update) and also fixes the rake update problem.