Fix for yosemite and ruby version 2.1.4