librustc: Don't pass around Session with @ and make building_library just bool instead of @mut bool.

Having to dereference `sess.building_library` is really annoying so this fixes that! Also, Session is no longer passed around with @.