Add rake dependency (for Passenger build). Add git-core package dependency if any gem in the bundle is fetched from a git repository. Update Passenger version to 4.0.46.