* patch for OSX compilation