Add require 'thread' to try to fix Mutex class on ubuntu.