Added includes for Threadsafe mode in Rails 4